package com.eleadmin.goods.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import java.math.BigDecimal;
import java.io.Serializable;
import java.sql.Timestamp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 商品实体类
 *
 * @author zengfanzhen
 * @since 2024-04-20
 */

@Data
@ApiModel(description = "商品")
@TableName("goods")
public class Goods implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "流水号（自增）")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商品的唯一标识符")
    private String goodId;

    @ApiModelProperty(value = "商品名称")
    private String title;

    @ApiModelProperty(value = "商品类型")
    private String goodType;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;

    @ApiModelProperty(value = "创建时间")
    private Timestamp createTime;

    @ApiModelProperty(value = "创建人")
    private Long creatorId;

    @ApiModelProperty(value = "修改时间")
    private Timestamp changeTime;

    @ApiModelProperty(value = "修改人")
    private Long changerId;

    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
}
